package com.ynny.bean;

import org.springframework.stereotype.Component;

/**
 * ClassName: User
 * Package:
 * Description:
 *
 * @Author 软件232班——欧阳昊淼
 * @Create 2025/2/27 9:33
 * @Version 17.0.2
 */
@Component("user")
public class User {
    private String number;
    private String name;
    private String grade;
    private String clbum;
    private String gender;
    private String password;
    private String identity;

    // 构造函数
    public User(String number, String name, String grade, String clbum, String gender) {
        this.number = number;
        this.name = name;
        this.grade = grade;
        this.clbum = clbum;
        this.gender = gender;
    }

    // Getter 和 Setter 方法
    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getClbum() {
        return clbum;
    }

    public void setClbum(String clbum) {
        this.clbum = clbum;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    public String tiString() {
        return "number=" + number + ", password=" + password + ", identity=" + identity;
    }
}
